import request from '@/utils/request'
export function fetchList(cid,params) {
  return request({
    url:'/factoryAttribute/list/'+cid,
    method:'get',
    params:params
  })
}

export function deleteFactoryAttr(data) {
  return request({
    url:'/factoryAttribute/delete',
    method:'post',
    data:data
  })
}

export function createFactoryAttr(data) {
  return request({
    url:'/factoryAttribute/create',
    method:'post',
    data:data
  })
}

export function updateFactoryAttr(id,data) {
  return request({
    url:'/factoryAttribute/update/'+id,
    method:'post',
    data:data
  })
}
export function getFactoryAttr(id) {
  return request({
    url:'/factoryAttribute/'+id,
    method:'get'
  })
}

export function getFactoryAttrInfo(factoryCategoryId) {
  return request({
    url:'/factoryAttribute/attrInfo/'+factoryCategoryId,
    method:'get'
  })
}
